#!/usr/bin/env node

const Circle = require('./04-export-object')
const log = console.log

const radius = 5; // 假设圆的半径是 5
const myCircle = new Circle(radius);

// 动态导入 chalk 模块
import('chalk').then(chalk => {
    // 打印导入模块的变量，文字用绿色
    log(chalk.default.green(`Diameter: ${myCircle.diameter}`))
    log(chalk.default.green(`Area: ${myCircle.area}`))
    log(chalk.default.green(`Circumference: ${myCircle.circumference}`))
    log(module)
}).catch(error => {
    console.error('Error importing chalk:', error)
})


    





